package com.mm.cloud.common.redis.util;

/**
 * Redis拼接Key
 *
 * @author mr
 * @since 2021-06-09
 */
public class RedisKeyStringUtils {

    /**
     * @param args 参数
     * @return Redis拼接Key
     */
    public static String appendRedisKey(Object... args) {
        StringBuilder str = new StringBuilder();
        for (Object arg : args) {
            str.append(arg).append(":");
        }
        str.deleteCharAt(str.length() - 1);
        return str.toString();
    }

}
